package jun.carlauncher.base;

import android.app.Application;
import jun.carlauncher.utils.Utils;

/**
 * Created by NocodeLee on 2017/10/26.
 * Email：lirizhilirizhi@163.com
 */

public class APP extends Application{

  @Override public void onCreate() {
    super.onCreate();
    mInstance = this;
  }

  protected static APP mInstance;

  public APP() {
    mInstance = this;
    Utils.init(this);
  }

  public static APP getAPP() {
    if (mInstance != null) {
      return mInstance;
    } else {
      mInstance = new APP();
      mInstance.onCreate();
      return mInstance;
    }
  }


}
